import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core';
import { ModalController } from '@ionic/angular';

@Component({
    selector: 'pm-staff',
    templateUrl: './staff.html',
    styleUrls: ['staff.scss']
})
export class StaffComponent implements OnInit {
    timeOptions = ['日', '周', '月'];
    selectTimeName = this.timeOptions[0];
    constructor(public modalCtrl: ModalController) {
    }

    ngOnInit() {
    }

    aim(i) {
    }

    toVideo() {
        // const videoModal = this.modalCtrl.create(VideoModal);
        // videoModal.present();
        console.log('todo:打开视屏');
    }

    datePick(index, time) {
        console.log(index, time);
        this.selectTimeName = this.timeOptions[index];
        // if (index === 2) {
        //     //   getBarChartData(time)
        // } else {
        //     //   getLineChartData(time, index);
        // }
        // getTotalHour(time,index);
        // getExcellent(time,index);
    }
}
